package lines.gameengine;

import lines.gameengine.strategy.IBallStrategy;

/**
 * @author vpotapenko
 */
public class Ball implements IBall {

    private IBallStrategy strategy;

    public Ball(IBallStrategy strategy) {
        this.strategy = strategy;
    }

    @Override
    public IBallStrategy getStrategy() {
        return strategy;
    }

    @Override
    public int getValue() {
        return strategy.getValue();
    }
}
